<let/selected=false />
<define/myThing selected=selected>
  <span>The thing</span>
</define>

<child thing=myThing />
<button onClick() { selected = !selected }>Toggle</button>